package domain;

import java.util.concurrent.ArrayBlockingQueue;

public class MoveQueue {

    private ArrayBlockingQueue<Integer> queue = new ArrayBlockingQueue<>(1);
    
    public MoveQueue(){
    }
  
    public void pushQueue(int x, int y){
        queue.offer(x);
        queue.offer(y);
    }

    public Integer popQueue(){
        return queue.poll();
    }

    public void clearQueue(){
        queue.clear();
    }
}
